package com.cnc.ssm.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author Hibernate CodeGenerator
 */
public class PwFunc implements Serializable {

    /**
     * identifier field
     */
    private String funcCode;

    /**
     * persistent field
     */
    private String funcName;

    /**
     * persistent field
     */
    private String menuCode;

    /**
     * full constructor
     */
    public PwFunc(java.lang.String funcCode, java.lang.String funcName, java.lang.String menuCode) {
        this.funcCode = funcCode;
        this.funcName = funcName;
        this.menuCode = menuCode;
    }

    /**
     * default constructor
     */
    public PwFunc() {
    }

    public java.lang.String getFuncCode() {
        return this.funcCode;
    }

    public void setFuncCode(java.lang.String funcCode) {
        this.funcCode = funcCode;
    }

    public java.lang.String getFuncName() {
        return this.funcName;
    }

    public void setFuncName(java.lang.String funcName) {
        this.funcName = funcName;
    }

    public java.lang.String getMenuCode() {
        return this.menuCode;
    }

    public void setMenuCode(java.lang.String menuCode) {
        this.menuCode = menuCode;
    }

    public String toString() {
        return new ToStringBuilder(this)
                .append("funcCode", getFuncCode())
                .toString();
    }

    public boolean equals(Object other) {
        if (!(other instanceof PwFunc)) return false;
        PwFunc castOther = (PwFunc) other;
        return new EqualsBuilder()
                .append(this.getFuncCode(), castOther.getFuncCode())
                .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
                .append(getFuncCode())
                .toHashCode();
    }

}
